package com.itheima.reggie.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.itheima.reggie.domain.Employee;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @Name EmployeeMapper
 * @Author stella
 * @Date 2023-03-01 11:38 AM
 */
//   http://localhost:8080/backend/page/login/login.html
@Mapper
public interface EmployeeMapper extends BaseMapper<Employee> {
    // 员工登录
    @Select("select * from employee where username = #{username}")
    Employee find(String username);

//    // 员工列表
//    List<Employee> findAll(String name);

//    //新增员工
//    void  addNew(Employee e);
    //回显员工
    Employee findOne(Long id);
    //修改员工
    void update(Employee e);
}
